import {MessageType} from "db://assets/scripts/framework/MessageType";

/**
 * 消息
 */
export default class Message {
    /**
     * 消息类型
     */
    type: MessageType;
    /**
     * 指令
     */
    command: MessageType;
    /**
     * 参数
     */
    content: any;

    constructor(type: MessageType, command: MessageType, content: any) {
        this.type = type;
        this.command = command;
        this.content = content;
    }
}